package com.zz.kt.vod.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zz.kt.model.vod.CourseDescription;
import com.zz.kt.result.Result;
import com.zz.kt.vo.vod.CourseFormVo;
import com.zz.kt.vo.vod.CourseQueryVo;
import com.zz.kt.vod.mapper.CourseDescriptionMapper;
import com.zz.kt.vod.service.CourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author zz
 * @since 2022-08-30
 */
@Service
public class CourseDescriptionServiceImpl extends ServiceImpl<CourseDescriptionMapper, CourseDescription> implements CourseDescriptionService {

    @Override
    public void removedescriptionByCourseId(Long id) {
        QueryWrapper<CourseDescription> wrapper = new QueryWrapper<>();
        wrapper.eq("course_id",id);
        baseMapper.delete(wrapper);
    }
}
